package com.zpark;

import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

/**
 * 实现Servlet的第二种方式，继承GenericServlet，并且重写Service方法
 */
public class Demo02Servlet extends GenericServlet {
	@Override
	public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
		System.out.println("GenericServlet");
	}
}
